<extend name="Public/top"/>
<block name="body">
<div class="container">
	<div class="banner_1">
		<img src="__IMG__/banner_3.jpg">
	</div>
	<div class="zs_policy">
		<p>合作问答</p>
		<span>QUESTION ANSWER</span>
	</div>
	<div class="zs_search">
		<form id="search" method = 'post'  name="search" action="{:U('Index/search_answer')}">
			<input type="text" id='keyword' name='keyword' placeholder='加盟'>
			<label id="search_qa"><i class="iconfont font-stl">&#xe605;</i></label>
		</form>
	</div>
	<div class="zs_content">
		<if condition="empty($interlocution)">
			<div class="zs_content_tip clearfix">
				<div class="tips clearfix">
					<div class="left"><i class="iconfont">&#xe66a;</i></div>
					<div class="right">
						<h1 class="tips-tit"><span>抱歉~~~，</span>没有找到与“<strong>11111111111111</strong>”相关的商品~</h1>
						<p class="tips-txt">
							建议您：<br>
							1、看看输入的文字是否有误<br>
							2、拆分要搜索的关键词，分成几个词语再次搜索
						</p>
					</div>
				</div>
			</div>
			<else />
			<foreach name="interlocution" item="vo" >
				<div class="zs_content_con clearfix">
					<div class="zs_content_r zs_content_center">
						<h1 class="zs_content_zsqu">{$vo.question}</h1>
						<div class="zs_content_text zs_aw">
							<p><pre>{$vo.answer}</pre></p>
						</div>
					</div>

				</div>
			</foreach>
		</if>
	</div>
</div>
<script type="text/javascript" src="__JS__/jquery-1.4.2.min.js"></script>
<script>
	$('#search_qa').click(function(){
		$('#search').submit();
	});
	
	 $('#keyword').keyup(function(event){
        if(event.keyCode === 13){
            $('#search').submit();
        }
    });
	
    $(function(){  
        var $keyword = $("input[name='keyword']");  
        placeholder = $keyword.attr("placeholder");  
        $keyword.bind('focus',function(){  
          if(placeholder == $keyword.val()){  
            $keyword.val('');  
          }  
        });  
        $keyword.bind('blur',function(){
          if('' == $keyword.val()){  
            $keyword.val(placeholder);  
          }  
        });  
    });  
</script>
</block>